# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         clear函数
# Description:
# Author:       asus
# Date:         2019/3/5
#-------------------------------------------------------------------------------


#定义一个字典
names1 = {"Bill":20,"Mike":30,"John":40}
names2 = names1
print(names2)
names1 = {}
print(names2)

names1 = {"Bill":20,"Mike":30,"John":40}
names2 = names1
#用clear函数才能清空指向的原字典
names1.clear()
print(names2)